<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222"><meta name="generator" content="Hexo 6.3.0">

  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/Horse.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/Horse.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha256-HtsXJanqjKTc8vVQjO4YMhiqFoXkfBsjBWcX91T1jr8=" crossorigin="anonymous">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" integrity="sha256-Vzbj7sDDS/woiFS3uNKo8eIuni59rjyNGtXfstRzStA=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"yanlwsometing.gitee.io","root":"/blog/","images":"/blog/images","scheme":"Pisces","darkmode":false,"version":"8.16.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":{"enable":true,"show_result":true,"style":"flat"},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"stickytabs":false,"motion":{"enable":false,"async":false,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"}}</script><script src="/blog/js/config.js"></script>

    <meta name="description" content="本篇主要讲解Linux的工具及其基本的使用 安装中文输入法 安装拼音输入法： sudo apt-get install ibus-pinyin  重启系统： sudo reboot  启动拼音输入法： ibus-daemon -d  设置拼音输入法： im-config   然后在弹出的窗口中，选择“IBus”，点击“OK”，重启系统即可。 之后在setting -&gt; keyboard，添加">
<meta property="og:type" content="article">
<meta property="og:title" content="Linux（一）">
<meta property="og:url" content="https://yanlwsometing.gitee.io/blog/2023/06/12/Linux%EF%BC%88%E4%B8%80%EF%BC%89/index.html">
<meta property="og:site_name" content="yanlwsometing">
<meta property="og:description" content="本篇主要讲解Linux的工具及其基本的使用 安装中文输入法 安装拼音输入法： sudo apt-get install ibus-pinyin  重启系统： sudo reboot  启动拼音输入法： ibus-daemon -d  设置拼音输入法： im-config   然后在弹出的窗口中，选择“IBus”，点击“OK”，重启系统即可。 之后在setting -&gt; keyboard，添加">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-06-12T02:10:22.000Z">
<meta property="article:modified_time" content="2023-12-15T09:07:10.851Z">
<meta property="article:author" content="yanlw">
<meta property="article:tag" content="Linux工具">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="https://yanlwsometing.gitee.io/blog/2023/06/12/Linux%EF%BC%88%E4%B8%80%EF%BC%89/">



<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"https://yanlwsometing.gitee.io/blog/2023/06/12/Linux%EF%BC%88%E4%B8%80%EF%BC%89/","path":"2023/06/12/Linux（一）/","title":"Linux（一）"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>Linux（一） | yanlwsometing</title>
  








  <noscript>
    <link rel="stylesheet" href="/blog/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="headband"></div>

  <main class="main">
    <div class="column">
      <header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">yanlwsometing</p>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger" aria-label="搜索" role="button">
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-tags"><a href="/blog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li><li class="menu-item menu-item-categories"><a href="/blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li><li class="menu-item menu-item-archives"><a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a></li><li class="menu-item menu-item-commonweal"><a href="/blog/404/" rel="section"><i class="fa fa-heartbeat fa-fw"></i>公益 404</a></li>
  </ul>
</nav>




</header>
        
  
  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%AE%89%E8%A3%85%E4%B8%AD%E6%96%87%E8%BE%93%E5%85%A5%E6%B3%95"><span class="nav-number">1.</span> <span class="nav-text">安装中文输入法</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#man"><span class="nav-number">2.</span> <span class="nav-text">man</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#vim"><span class="nav-number">3.</span> <span class="nav-text">vim</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-%E5%AE%89%E8%A3%85"><span class="nav-number">3.1.</span> <span class="nav-text">1. 安装</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-%E9%85%8D%E7%BD%AE"><span class="nav-number">3.2.</span> <span class="nav-text">2. 配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-%E4%BD%BF%E7%94%A8"><span class="nav-number">3.3.</span> <span class="nav-text">3. 使用</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#git"><span class="nav-number">4.</span> <span class="nav-text">git</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-%E5%AE%89%E8%A3%85-1"><span class="nav-number">4.1.</span> <span class="nav-text">1. 安装</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-%E9%85%8D%E7%BD%AE-1"><span class="nav-number">4.2.</span> <span class="nav-text">2. 配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-%E4%BD%BF%E7%94%A8-1"><span class="nav-number">4.3.</span> <span class="nav-text">3. 使用</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#tmux"><span class="nav-number">5.</span> <span class="nav-text">tmux</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#make"><span class="nav-number">6.</span> <span class="nav-text">make</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#gdb"><span class="nav-number">7.</span> <span class="nav-text">gdb</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Tmux"><span class="nav-number">8.</span> <span class="nav-text">Tmux</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#verilator"><span class="nav-number">9.</span> <span class="nav-text">verilator</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%BE%85%E6%95%B4%E7%90%86"><span class="nav-number">10.</span> <span class="nav-text">待整理</span></a></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="yanlw"
      src="/blog/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">yanlw</p>
  <div class="site-description" itemprop="description">穷则独善其身，达则兼济天下！</div>
</div>
<div class="site-state-wrap animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/blog/archives/">
          <span class="site-state-item-count">23</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/blog/categories/">
        <span class="site-state-item-count">9</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/blog/tags/">
        <span class="site-state-item-count">18</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author animated">
      <span class="links-of-author-item">
        <a href="https://gitee.com/yanlwsometing" title="Gitee → https:&#x2F;&#x2F;gitee.com&#x2F;yanlwsometing" rel="noopener me" target="_blank"><i class="fab fa-gitee fa-fw"></i>Gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:1977712019@qq.com" title="Mail → mailto:1977712019@qq.com" rel="noopener me" target="_blank"><i class="fa fa-envelope fa-fw"></i>Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://weibo.com/" title="Weibo → https:&#x2F;&#x2F;weibo.com&#x2F;" rel="noopener me" target="_blank"><i class="fab fa-weibo fa-fw"></i>Weibo</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://twitter.com/" title="Twitter → https:&#x2F;&#x2F;twitter.com&#x2F;" rel="noopener me" target="_blank"><i class="fab fa-twitter fa-fw"></i>Twitter</a>
      </span>
  </div>

        </div>
      </div>
        <div class="back-to-top animated" role="button" aria-label="返回顶部">
          <i class="fa fa-arrow-up"></i>
          <span>0%</span>
        </div>
    </div>

    
  </aside>


    </div>

    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://yanlwsometing.gitee.io/blog/2023/06/12/Linux%EF%BC%88%E4%B8%80%EF%BC%89/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/avatar.jpg">
      <meta itemprop="name" content="yanlw">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="yanlwsometing">
      <meta itemprop="description" content="穷则独善其身，达则兼济天下！">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="Linux（一） | yanlwsometing">
      <meta itemprop="description" content="">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Linux（一）
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2023-06-12 10:10:22" itemprop="dateCreated datePublished" datetime="2023-06-12T10:10:22+08:00">2023-06-12</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar-check"></i>
      </span>
      <span class="post-meta-item-text">更新于</span>
      <time title="修改时间：2023-12-15 17:07:10" itemprop="dateModified" datetime="2023-12-15T17:07:10+08:00">2023-12-15</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/blog/categories/Linux/" itemprop="url" rel="index"><span itemprop="name">Linux</span></a>
        </span>
    </span>

  
    <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv">
      <span class="post-meta-item-icon">
        <i class="far fa-eye"></i>
      </span>
      <span class="post-meta-item-text">阅读次数：</span>
      <span id="busuanzi_value_page_pv"></span>
    </span>
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody"><p>本篇主要讲解Linux的工具及其基本的使用</p>
<h2 id="安装中文输入法"><a href="#安装中文输入法" class="headerlink" title="安装中文输入法"></a>安装中文输入法</h2><ol>
<li><p>安装拼音输入法：</p>
<p><code>sudo apt-get install ibus-pinyin</code></p>
</li>
<li><p>重启系统：</p>
<p><code>sudo reboot</code></p>
</li>
<li><p>启动拼音输入法：</p>
<p><code>ibus-daemon -d</code></p>
</li>
<li><p>设置拼音输入法：</p>
<p><code>im-config</code></p>
</li>
</ol>
<p>然后在弹出的窗口中，选择“IBus”，点击“OK”，重启系统即可。</p>
<p>之后在setting -&gt; keyboard，添加Chinese(Pinyin)</p>
<span id="more"></span>

<h2 id="man"><a href="#man" class="headerlink" title="man"></a>man</h2><p>manual page主要包含以下的小节:</p>
<ul>
<li>NAME - 命令名</li>
<li>SYNOPSIS - 使用方法大纲</li>
<li>CONFIGURATION - 配置</li>
<li>DESCRIPTION - 功能说明</li>
<li>OPTIONS - 可选参数说明</li>
<li>EXIT STATUS - 退出状态, 这是一个返回给父进程的值</li>
<li>RETURN VALUE - 返回值</li>
<li>ERRORS - 可能出现的错误类型</li>
<li>ENVIRONMENT - 环境变量</li>
<li>FILES - 相关配置文件</li>
<li>VERSIONS - 版本</li>
<li>CONFORMING TO - 符合的规范</li>
<li>NOTES - 使用注意事项</li>
<li>BUGS - 已经发现的bug</li>
<li>EXAMPLE - 一些例子</li>
<li>AUTHORS - 作者</li>
<li>SEE ALSO - 功能或操作对象相近的其它命令</li>
</ul>
<h2 id="vim"><a href="#vim" class="headerlink" title="vim"></a>vim</h2><p><a target="_blank" rel="noopener" href="https://github.com/vim/vim">vim</a>是一种文本编辑器，它是Unix和类Unix系统中最流行的编辑器之一。Vim是Vi编辑器的改进版本，它在可视化模式、功能扩展和用户界面方面做了大量改进。</p>
<h3 id="1-安装"><a href="#1-安装" class="headerlink" title="1. 安装"></a>1. 安装</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">sudo apt install vim</span></span><br></pre></td></tr></table></figure>

<h3 id="2-配置"><a href="#2-配置" class="headerlink" title="2. 配置"></a>2. 配置</h3><p> We first make a copy of it to the home directory by <code>cp</code> command:</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash"><span class="built_in">cp</span> /etc/vim/vimrc ~/.vimrc</span></span><br></pre></td></tr></table></figure>

<p>And switch to the home directory if you are not under it yet:</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash"><span class="built_in">cd</span> ~</span></span><br></pre></td></tr></table></figure>

<p>If you use <code>ls</code> to list files, you will not see the <code>.vimrc</code> you just copied. This is because a file whose name starts with a <code>.</code> is a hidden file in GNU&#x2F;Linux. To show hidden files, use <code>ls</code> with <code>-a</code> option:</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash"><span class="built_in">ls</span> -a</span></span><br></pre></td></tr></table></figure>

<p>Then open <code>.vimrc</code> using <code>vim</code>:</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">vim .vimrc</span></span><br></pre></td></tr></table></figure>

<p>modify the <code>.vimrc</code> file as following:</p>
<figure class="highlight diff"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">--- before modification</span></span><br><span class="line"><span class="comment">+++ after modification</span></span><br><span class="line"><span class="meta">@@ -21,3 +21,3 @@</span></span><br><span class="line"> &quot; If using a dark background within the editing area and syntax highlighting</span><br><span class="line"> &quot; turn on this option as well</span><br><span class="line"><span class="deletion">-&quot;set background=dark</span></span><br><span class="line"><span class="addition">+set background=dark</span></span><br><span class="line"><span class="meta">@@ -31,5 +31,5 @@</span></span><br><span class="line"> &quot; Uncomment the following to have Vim load indentation rules and plugins</span><br><span class="line"> &quot; according to the detected filetype.</span><br><span class="line"><span class="deletion">-&quot;filetype plugin indent on</span></span><br><span class="line"><span class="addition">+filetype plugin indent on</span></span><br><span class="line"><span class="meta">@@ -37,10 +37,10 @@</span></span><br><span class="line"> &quot; The following are commented out as they cause vim to behave a lot</span><br><span class="line"> &quot; differently from regular Vi. They are highly recommended though.</span><br><span class="line"> &quot;set showcmd            &quot; Show (partial) command in status line.</span><br><span class="line"><span class="deletion">-&quot;set showmatch          &quot; Show matching brackets.</span></span><br><span class="line"><span class="deletion">-&quot;set ignorecase         &quot; Do case insensitive matching</span></span><br><span class="line"><span class="deletion">-&quot;set smartcase          &quot; Do smart case matching</span></span><br><span class="line"><span class="deletion">-&quot;set incsearch          &quot; Incremental search</span></span><br><span class="line"><span class="addition">+set showmatch          &quot; Show matching brackets.</span></span><br><span class="line"><span class="addition">+set ignorecase         &quot; Do case insensitive matching</span></span><br><span class="line"><span class="addition">+set smartcase          &quot; Do smart case matching</span></span><br><span class="line"><span class="addition">+set incsearch          &quot; Incremental search</span></span><br><span class="line"> &quot;set autowrite          &quot; Automatically save before commands like :next and :make</span><br><span class="line"><span class="deletion">-&quot;set hidden             &quot; Hide buffers when they are abandoned</span></span><br><span class="line"><span class="addition">+set hidden             &quot; Hide buffers when they are abandoned</span></span><br><span class="line"> &quot;set mouse=a            &quot; Enable mouse usage (all modes)</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><span class="line">setlocal noswapfile &quot; 不要生成swap文件</span><br><span class="line">set bufhidden=hide &quot; 当buffer被丢弃的时候隐藏它</span><br><span class="line">colorscheme evening &quot; 设定配色方案</span><br><span class="line">set number &quot; 显示行号</span><br><span class="line">set cursorline &quot; 突出显示当前行</span><br><span class="line">set ruler &quot; 打开状态栏标尺</span><br><span class="line">set shiftwidth=2 &quot; 设定 &lt;&lt; 和 &gt;&gt; 命令移动时的宽度为 2</span><br><span class="line">set softtabstop=2 &quot; 使得按退格键时可以一次删掉 2 个空格</span><br><span class="line">set tabstop=2 &quot; 设定 tab 长度为 2</span><br><span class="line">set nobackup &quot; 覆盖文件时不备份</span><br><span class="line">set autochdir &quot; 自动切换当前目录为当前文件所在的目录</span><br><span class="line">set backupcopy=yes &quot; 设置备份时的行为为覆盖</span><br><span class="line">set hlsearch &quot; 搜索时高亮显示被找到的文本</span><br><span class="line">set noerrorbells &quot; 关闭错误信息响铃</span><br><span class="line">set novisualbell &quot; 关闭使用可视响铃代替呼叫</span><br><span class="line">set t_vb= &quot; 置空错误铃声的终端代码</span><br><span class="line">set matchtime=2 &quot; 短暂跳转到匹配括号的时间</span><br><span class="line">set magic &quot; 设置魔术</span><br><span class="line">set smartindent &quot; 开启新行时使用智能自动缩进</span><br><span class="line">set backspace=indent,eol,start &quot; 不设定在插入状态无法用退格键和 Delete 键删除回车符</span><br><span class="line">set cmdheight=1 &quot; 设定命令行的行数为 1</span><br><span class="line">set laststatus=2 &quot; 显示状态栏 (默认值为 1, 无法显示状态栏)</span><br><span class="line">set statusline=\ %&lt;%F[%1*%M%*%n%R%H]%=\ %y\ %0(%&#123;&amp;fileformat&#125;\ %&#123;&amp;encoding&#125;\ Ln\ %l,\ Col\ %c/%L%) &quot; 设置在状态行显示的信息</span><br><span class="line">set foldenable &quot; 开始折叠</span><br><span class="line">set foldmethod=syntax &quot; 设置语法折叠</span><br><span class="line">set foldcolumn=0 &quot; 设置折叠区域的宽度</span><br><span class="line">setlocal foldlevel=1 &quot; 设置折叠层数为 1</span><br></pre></td></tr></table></figure>

<h3 id="3-使用"><a href="#3-使用" class="headerlink" title="3. 使用"></a>3. 使用</h3><blockquote>
<p>Issue the <code>vimtutor</code> command in terminal. This will launch a tutorial for <code>vim</code>. This way is recommended, since you can read the tutorial and practice at the same time.</p>
</blockquote>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">Lesson 1 SUMMARY</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">  1. The cursor is moved using either the arrow keys or the hjkl keys.</span><br><span class="line">         h (left)       j (down)       k (up)       l (right)</span><br><span class="line"></span><br><span class="line">  2. To start Vim from the shell prompt type:  vim FILENAME &lt;ENTER&gt;</span><br><span class="line"></span><br><span class="line">  3. To exit Vim type:     &lt;ESC&gt;   :q!   &lt;ENTER&gt;  to trash all changes.</span><br><span class="line">             OR type:      &lt;ESC&gt;   :wq   &lt;ENTER&gt;  to save the changes.</span><br><span class="line"></span><br><span class="line">  4. To delete the character at the cursor type:  x</span><br><span class="line"></span><br><span class="line">  5. To insert or append text type:</span><br><span class="line">         i   type inserted text   &lt;ESC&gt;         insert before the cursor</span><br><span class="line">         A   type appended text   &lt;ESC&gt;         append after the line</span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line">                     Lesson 2 SUMMARY</span><br><span class="line"></span><br><span class="line">1. To delete from the cursor up to the next word type:        dw</span><br><span class="line">2. To delete from the cursor up to the end of the word type:  de</span><br><span class="line">3. To delete from the cursor to the end of a line type:       d$</span><br><span class="line">4. To delete a whole line type:                               dd</span><br><span class="line"></span><br><span class="line">5. To repeat a motion prepend it with a number:   2w</span><br><span class="line">6. The format for a change command is:</span><br><span class="line">             operator   [number]   motion</span><br><span class="line">   where:</span><br><span class="line">     operator - is what to do, such as  d  for delete</span><br><span class="line">     [number] - is an optional count to repeat the motion</span><br><span class="line">     motion   - moves over the text to operate on, such as  w (word),</span><br><span class="line">                e (end of word),  $ (end of the line), etc.</span><br><span class="line"></span><br><span class="line">7. To move to the start of the line use a zero:  0 </span><br><span class="line"></span><br><span class="line">8. To undo previous actions, type:           u  (lowercase u)</span><br><span class="line">   To undo all the changes on a line, type:  U  (capital U)</span><br><span class="line">   To undo the undo&#x27;s, type:                 CTRL-R</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"> Lesson 3 SUMMARY</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">  1. To put back text that has just been deleted, type   p .  This puts the</span><br><span class="line">     deleted text AFTER the cursor (if a line was deleted it will go on the</span><br><span class="line">     line below the cursor).</span><br><span class="line"></span><br><span class="line">  2. To replace the character under the cursor, type   r   and then the</span><br><span class="line">     character you want to have there.</span><br><span class="line"></span><br><span class="line">  3. The change operator allows you to change from the cursor to where the</span><br><span class="line">     motion takes you.  eg. Type  ce  to change from the cursor to the end of</span><br><span class="line">     the word,  c$  to change to the end of a line.</span><br><span class="line"></span><br><span class="line">  4. The format for change is:</span><br><span class="line"></span><br><span class="line">         c   [number]   motion</span><br><span class="line"></span><br><span class="line">Now go on to the next lesson.</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line">Lesson 4 SUMMARY</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">  1. CTRL-G  displays your location in the file and the file status.</span><br><span class="line">             G  moves to the end of the file.</span><br><span class="line">     number  G  moves to that line number.</span><br><span class="line">            gg  moves to the first line.</span><br><span class="line"></span><br><span class="line">  2. Typing  /  followed by a phrase searches FORWARD for the phrase.</span><br><span class="line">     Typing  ?  followed by a phrase searches BACKWARD for the phrase.</span><br><span class="line">     After a search type  n  to find the next occurrence in the same direction</span><br><span class="line">     or  N  to search in the opposite direction.</span><br><span class="line">     CTRL-O takes you back to older positions, CTRL-I to newer positions.</span><br><span class="line"></span><br><span class="line">  3. Typing  %  while the cursor is on a (,),[,],&#123;, or &#125; goes to its match.</span><br><span class="line"></span><br><span class="line">  4. To substitute new for the first old in a line type    :s/old/new</span><br><span class="line">     To substitute new for all &#x27;old&#x27;s on a line type       :s/old/new/g</span><br><span class="line">     To substitute phrases between two line #&#x27;s type       :#,#s/old/new/g</span><br><span class="line">     To substitute all occurrences in the file type        :%s/old/new/g</span><br><span class="line">     To ask for confirmation each time add &#x27;c&#x27;             :%s/old/new/gc</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line">Lesson 5 SUMMARY</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">  1.  :!command  executes an external command.</span><br><span class="line"></span><br><span class="line">      Some useful examples are:</span><br><span class="line">         (Windows)        (Unix)</span><br><span class="line">          :!dir            :!ls            -  shows a directory listing.</span><br><span class="line">          :!del FILENAME   :!rm FILENAME   -  removes file FILENAME.</span><br><span class="line"></span><br><span class="line">  2.  :w FILENAME  writes the current Vim file to disk with name FILENAME.</span><br><span class="line"></span><br><span class="line">  3.  v  motion  :w FILENAME  saves the Visually selected lines in file</span><br><span class="line">      FILENAME.</span><br><span class="line"></span><br><span class="line">  4.  :r FILENAME  retrieves disk file FILENAME and puts it below the</span><br><span class="line">      cursor position.</span><br><span class="line"></span><br><span class="line">  5.  :r !dir  reads the output of the dir command and puts it below the</span><br><span class="line">      cursor position.</span><br><span class="line"></span><br><span class="line"></span><br></pre></td></tr></table></figure>



<h2 id="git"><a href="#git" class="headerlink" title="git"></a>git</h2><p>Git类似于游戏的存档工具，防止你需要重复过剧情。它是一个流行的版本控制系统，它广泛应用于软件开发中。Git可以帮助开发者记录并追踪他们的代码修改、协同开发、管理版本和分支，以及将代码推送到不同的远程代码仓库中存储。</p>
<h3 id="1-安装-1"><a href="#1-安装-1" class="headerlink" title="1. 安装"></a>1. 安装</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">sudo apt install vim</span></span><br></pre></td></tr></table></figure>

<h3 id="2-配置-1"><a href="#2-配置-1" class="headerlink" title="2. 配置"></a>2. 配置</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git config --global user.name <span class="string">&quot;Zhang San&quot;</span>		<span class="comment"># your name</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git config --global user.email <span class="string">&quot;zhangsan@foo.com&quot;</span>	<span class="comment"># your email</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git config --global core.editor vim			<span class="comment"># your favourite editor</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git config --global color.ui <span class="literal">true</span></span></span><br></pre></td></tr></table></figure>

<ul>
<li><a target="_blank" rel="noopener" href="https://docs.github.com/zh/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/managing-multiple-accounts">管理多个帐户 - GitHub 文档</a></li>
<li><a target="_blank" rel="noopener" href="https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account">新增 SSH 密钥到 GitHub 帐户 - GitHub 文档</a></li>
</ul>
<h3 id="3-使用-1"><a href="#3-使用-1" class="headerlink" title="3. 使用"></a>3. 使用</h3><p>存档信息：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git <span class="built_in">clone</span>       <span class="comment"># 下载框架代码,里面已经包含一些 git 记录</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git init        <span class="comment"># 在实验/项目中使用 git,需要初始化</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git <span class="built_in">log</span>         <span class="comment"># 查看目前为止所有的存档</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git status      <span class="comment"># 可以得知, 与当前存档相比, 哪些文件发生了变化</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git diff</span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git add file.c  <span class="comment"># 将文件加入跟踪列表</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git add -A      <span class="comment"># 一次添加所有未被跟踪的文件</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">vim .gitignore  <span class="comment"># 编辑 .gitignore 文件,</span></span></span><br><span class="line">				  # 在里面给出需要被 git 忽略的文件和文件类型</span><br></pre></td></tr></table></figure>

<p>存读档：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git commit      			 <span class="comment"># 存档</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git reset --hard b87c      <span class="comment"># 读档（这意为着你不能随便回到&quot;将来&quot;了）</span></span></span><br></pre></td></tr></table></figure>

<p>第三视点：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git branch     			 <span class="comment"># 查看所有分支</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git checkout b87c          <span class="comment"># 将处于一个虚构的分支中,查看 b87c 存档的内容</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git checkout 分支名 		   <span class="comment"># 切换到其它分支</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git checkout -B 分支名      <span class="comment"># 对代码的内容进行修改之后存档</span></span></span><br></pre></td></tr></table></figure>



<h2 id="tmux"><a href="#tmux" class="headerlink" title="tmux"></a>tmux</h2><p><a target="_blank" rel="noopener" href="https://github.com/tmux/tmux">tmux</a>是终端多路复用器。 它让您在一个终端中的多个程序之间轻松切换，分离它们（它们在后台运行）并将其重新连接到不同的终端。</p>
<figure class="highlight ruby"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 查看所有会话</span></span><br><span class="line">tmux ls</span><br><span class="line"><span class="comment"># 新建一个名为earor的会话，下面会出现状态栏</span></span><br><span class="line">tmux new -s earor</span><br><span class="line"><span class="comment"># 当前窗口名为bash，修改为aeot，此时状态栏左侧显示[earor] 0:aeot* ，0代表第0个窗口</span></span><br><span class="line">tmux rename-window aeot</span><br><span class="line"><span class="comment"># 先用快捷键将aeot窗口分成上下两个窗格，快捷键忽略左右两个反引号`</span></span><br><span class="line"><span class="string">`ctrl b &quot;`</span></span><br><span class="line"><span class="comment"># 此时光标在下面的窗格，用快捷键将光标移动到上面</span></span><br><span class="line"><span class="string">`ctrl b 上方向键`</span></span><br><span class="line"><span class="comment"># 继续上部窗窗格分成左右两栏，左边的跑训练任务，右边的显示GPU信息</span></span><br><span class="line"><span class="string">`ctrl b %`</span></span><br><span class="line"><span class="comment"># 右上角GPU信息不需要太大，用快捷键调小一些，第二次按ctrl不松开，可以连续点按方向键</span></span><br><span class="line"><span class="string">`ctrl b ctrl 右方向键`</span></span><br><span class="line"><span class="string">`ctrl b ctrl 上方向键`</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 创建第二个pugan窗口</span></span><br><span class="line">tmux new-window -n pugan</span><br><span class="line"></span><br><span class="line"><span class="comment"># 用快捷键切换window窗口切换到最后一个会继续循环，从而展示第一个</span></span><br><span class="line"><span class="comment">## 向前</span></span><br><span class="line"><span class="string">`ctrl b p`</span></span><br><span class="line"><span class="comment">## 向后</span></span><br><span class="line"><span class="string">`ctrl b n`</span></span><br><span class="line"><span class="string">``</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># 然后直接关掉终端窗口或者断网，或者键入如下命令或快捷键，会话状态会由attached变成detached</span></span><br><span class="line">tmux detach </span><br><span class="line"><span class="string">`ctrl b d`</span></span><br><span class="line"><span class="comment"># 重新连接earor会话</span></span><br><span class="line">tmux attach -t earor</span><br><span class="line"></span><br><span class="line"><span class="comment"># 如果某个回话中的程序卡住了，可以杀死session</span></span><br><span class="line">tmux kill-session -t earor</span><br></pre></td></tr></table></figure>



<h2 id="make"><a href="#make" class="headerlink" title="make"></a>make</h2><p><strong>make</strong>是一个在<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91">软件开发</a>中所使用的<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E5%B7%A5%E5%85%B7%E8%BB%9F%E9%AB%94">工具程序</a>（Utility software），经由读取“makefile”的文件以<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E8%87%AA%E5%8B%95%E5%8C%96%E5%BB%BA%E6%A7%8B">自动化建构</a>软件。</p>
<h2 id="gdb"><a href="#gdb" class="headerlink" title="gdb"></a>gdb</h2><p><a target="_blank" rel="noopener" href="https://www.cprogramming.com/gdb.html">GDB, The GNU Debugger, By Example - Cprogramming.com</a></p>
<p><strong>GNU调试器</strong>（英语：<strong>G</strong>NU <strong>D</strong>e<strong>b</strong>ugger，缩写：<strong>GDB</strong>），是<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/GNU">GNU</a>软件系统中的标准<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E8%B0%83%E8%AF%95%E5%B7%A5%E5%85%B7">调试器</a>，此外GDB也是个具有移携性的调试器，经过移携需求的调修与重新编译，如今许多的<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E9%A1%9EUNIX">类UNIX</a>操作系统上都可以使用GDB，而现有GDB所能支持调试的编程语言有C、C++、<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/Pascal_(%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80)">Pascal</a>以及<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/Fortran">FORTRAN</a>。</p>
<p><strong>GNU编译器套装</strong>（英语：<strong>GNU Compiler Collection</strong>，缩写为<strong>GCC</strong>）是<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/GNU%E8%A8%88%E5%8A%83">GNU计划</a>制作的一种<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E4%BC%98%E5%8C%96%E7%BC%96%E8%AF%91%E5%99%A8">优化编译器</a>，支持各种<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E7%B7%A8%E7%A8%8B%E8%AA%9E%E8%A8%80">编程语言</a>、<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F">操作系统</a>、<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%B3%BB%E7%BB%9F%E7%BB%93%E6%9E%84">计算机系统结构</a>。该编译器是以<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/GPL">GPL</a>及<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/LGPL">LGPL</a>许可证所发行的<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/%E8%87%AA%E7%94%B1%E8%BB%9F%E9%AB%94">自由软件</a>，也是<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/GNU%E8%A8%88%E5%8A%83">GNU计划</a>的关键部分，还是<a target="_blank" rel="noopener" href="https://zh.wikipedia.org/wiki/GNU%E5%B7%A5%E5%85%B7%E9%93%BE">GNU工具链</a>的主要组成部分之一。</p>
<h2 id="Tmux"><a href="#Tmux" class="headerlink" title="Tmux"></a>Tmux</h2><h2 id="verilator"><a href="#verilator" class="headerlink" title="verilator"></a>verilator</h2><h2 id="待整理"><a href="#待整理" class="headerlink" title="待整理"></a>待整理</h2><ol>
<li>makefile</li>
<li>gdb</li>
</ol>

    </div>

    
    
    

    <footer class="post-footer">
          <div class="post-tags">
              <a href="/blog/tags/Linux%E5%B7%A5%E5%85%B7/" rel="tag"># Linux工具</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/blog/2023/06/11/Linux%E5%85%A5%E9%97%A8/" rel="prev" title="Linux入门">
                  <i class="fa fa-chevron-left"></i> Linux入门
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/blog/2023/06/30/Linux%EF%BC%88%E4%BA%8C%EF%BC%89/" rel="next" title="Linux（二）">
                  Linux（二） <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">yanlw</span>
</div>
<div class="busuanzi-count">
    <span class="post-meta-item" id="busuanzi_container_site_uv">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-item" id="busuanzi_container_site_pv">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/pisces/" rel="noopener" target="_blank">NexT.Pisces</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <div class="reading-progress-bar"></div>

  <a href="https://gitee.com/yanlwsometing" class="github-corner" title="在 GitHub 上关注我" aria-label="在 GitHub 上关注我" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


  
  <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js" integrity="sha256-oP6HI9z1XaZNBrJURtCoUT5SUnxFr8s3BzRl+cbzUq8=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js" integrity="sha256-yt2kYMy0w8AbtF89WXb2P1rfjcP/HTHLT7097U8Y5b8=" crossorigin="anonymous"></script>
<script src="/blog/js/comments.js"></script><script src="/blog/js/utils.js"></script><script src="/blog/js/next-boot.js"></script>

  


  <script src="/blog/js/third-party/fancybox.js"></script>



  
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>





</body>
</html>
